<template>
  <div class="m-num-cell">
    <div class="loop-box" v-for="(item, index) in communityList" :key="index">
      <div class="title-box"> <span class="area-icon"><i class="el-icon-location"></i></span> <span
          class="area-title">{{item.community_name}}</span></div>

      <div class="item-box">
        <span class="label-cls">会员数</span>
        <span class="label-val">{{item.member_num}}</span>
        <span class="label-cls">商家数</span>
        <span class="label-val">{{item.merchant_num}}</span>
        <span class="label-cls">技工数</span>
        <span class="label-val">{{item.mechanic_num}}</span>
        <span class="label-cls">邻工数</span>
        <span class="label-val">{{item.neighbor_workers_num}}</span>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "ManagerInfoCell",
    props: {
      communityList: { // 控制第二行是否脱敏
        type: Array,
        default: () => ([{
          community_name: '卓越嘉悦',
          member_num: 12566,
          merchant_num: 2,
          mechanic_num: 5,
          neighbor_workers_num: 8
        }])
      }
    },
    computed: {

    },
    methods: {

    }
  };
</script>

<style scoped>
  .title-box{
    display: flex;
    width: 100%;

  }
  .area-icon {
    color: #4876FF;
    font-size: 20px;
  }

  .area-title {
    font-weight: 600;
    font-size: 14px;
    margin-left: 10px;
  }

  .loop-box{
    margin-top: 10px;
  }

  .item-box {
    font-size: 14px;
    display: flex;
    width: 100%;

  }

  .label-cls {
    margin-left: 15px;
    color: #999;
  }

  .label-val {
     margin-left: 5px;
    color: #333;

  }
</style>
